import request from './request';
// 获取素材列表
export function GetImage(params) {
  return request({
    method: "GET",
    url: "user/images",
    params
  })
} 

// 收藏素材
export function CollectImage(imageId, collect) {
  return request({
    method: "PUT",
    url: `user/images/${imageId}`,
    data: {
      collect
    }
  })
}

// 删除素材
export function DeleteImage(imageId) {
  return request({
    method: "DELETE",
    url: `user/images/${imageId}`,
  })
}